Compiled Compiler Templates for V8 or: How I Learned to Stop Worrying and Love JavaScript

نویسندگان

  • Olivier Flückiger
  • Mircea Lungu
چکیده

The performance of JavaScript virtual machines (VM) improved by several orders of magnitude in the last years, giving raise to ever more complex applications. Consequently there is a high demand for further compiler optimizations and therefore short VM development cycles. V8 the JavaScript engine of the Chrome web browser has a baseline compiler optimized for low compiler latency and an optimizing compiler called Crankshaft to compile hot functions. To achieve better maintainability and to improve robustness we aim at sharing compiler infrastructure and code generating back end between the two compilers. Our approach instruments Crankshaft to generate native code templates for the baseline compiler. We show that our method is practical, reduces complexity and maintains performance. As a case study to support our claims we ported the assembly level implementation of binary operations for baseline code to a version compiled by Crankshaft.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The future of human - computer interaction , or how I learned to stop worrying and love my intelligent room

interaction, or how I learned to stop worrying and love my intelligent room Michael H. Coen, MIT Artificial Intelligence Lab Predicting the future is notoriously difficult. Suppose 100 years ago someone suggested that every bedroom in the US would soon have a bell that anyone in the world could ring anytime, day or night. Would you have believed it? Nevertheless, the telephone caught on and has...

متن کامل

Preliminary Results of Combining Thread-Level Speculation and Just-in-Time Compilation in Google’s V8

We present the first implementation of Thread-Level Speculation in combination with Just-in-time compilation. The implementation is done in Google’s V8, a well-known JavaScript engine, and evaluated on 15 popular web application executing on 2, 4, and 8 core computers. Our results show an average speedup of 1.55 on 4 cores, without any JavaScripts code modifications. Further, we have found that...

متن کامل

Emotional Regulation, or: How I Learned to Stop Worrying and Love the Nucleus Accumbens

How does the brain control emotion? In this issue of Neuron, Wager et al. use a novel mediation analysis of neuroimaging data to show two independent pathways for the control of emotion by the prefrontal cortex: a path through the amygdala predicts a greater negative emotional response, and a path through the nucleus accumbens/ventral striatum predicts a greater positive response.

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2014